package com.yckj.lawyermanager.dongao.mapper;

import com.yckj.lawyermanager.dongao.entity.Lawyer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface LawyerMapper {
    /**
     * 修改律师
     * @param lawyer 律师对象 包含律师的信息
     * @return 修改成功返回1，否则返回0.
     */
    public int updateLawyer(Lawyer lawyer);
    /**
     * 按照编号查询律师
     * @param lawyerid 律师编号
     * @return 查询得到的律师对象
     */
    public Lawyer selectLawyerById(int lawyerid);
    public int deleteLawyer(int lawyerid);
    /**
     * 查询所有律师
     * @return 律师集和
     */
    public List<Lawyer> selectLawyer();

    public int insertLawyer(Lawyer lawyer);
}